package com.godo.hadoop.mr;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

public class TestM extends Mapper<Object, Text, Text, IntWritable> {

	public void map(Object key, Text value, Context context) throws IOException ,InterruptedException{
		String[] items = value.toString().split("") ;
		for(String item:items){
			if(item.trim().length()>0 && !item.matches("\\d"))
			context.write(new Text(item.trim()), new IntWritable(1));
		}
	}

}
